package cn.wolfcode.car.business.mapper;

import cn.wolfcode.car.business.domain.Appointment;
import cn.wolfcode.car.business.query.AppointmentQuery;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface AppointmentMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Appointment record);

    Appointment selectByPrimaryKey(Long id);

    List<Appointment> selectAll();

    int updateByPrimaryKey(Appointment record);

    // 高级查询
    List<Appointment> selectForList(AppointmentQuery qo);

    // 修改 状态
    void changeStatus(Appointment appointment);

    // 软删除
    void softDelete(@Param("id") Long id, @Param("unexit") Long unexit);

    //
    void updateStatus(@Param("id") Long appointmentId, @Param("statusArrival") Integer statusArrival);
}